package com.hziee.graduate.ticket.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_schedule")
public class Schedule extends Model<Schedule> {

    @TableId(type = IdType.AUTO)
    private Long scheduleId;

    private String date;

    private Integer start;

    private Long cinemaId;

    private Integer end;

    private Long movieId;

    private Long roomId;

    private String createTime;

    private Long createPerson;

    private Integer delFlag;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.scheduleId;
    }
}

